home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- {
- if (`isTrue AnimationExists`) {
-
- if (!`scriptedPanelType -exists dopeSheetPanel`) {
- //
- // Define the callbacks for the dopeSheetPanel
- //
- scriptedPanelType
- // -sourceFile "dopeSheetPanel"
- -createCallback "createDopeSheetPanel"
- -addCallback "addDopeSheetPanel"
- -removeCallback "removeDopeSheetPanel"
- -deleteCallback "deleteDopeSheetPanel"
- -saveStateCallback "saveStateDopeSheetPanel"
- dopeSheetPanel;
-
- source "dopeSheetPanel";
-
- }
-
- if (!`scriptedPanelType -exists clipEditorPanel`) {
- //
- // Define the callbacks for the clipEditorPanel
- //
- scriptedPanelType
- -createCallback "createClipEditorPanel"
- -addCallback "addClipEditorPanel"
- -removeCallback "removeClipEditorPanel"
- -deleteCallback "deleteClipEditorPanel"
- -saveStateCallback "saveStateClipEditorPanel"
- clipEditorPanel;
-
- source "clipEditorPanel";
- }
-
- if (!`scriptedPanelType -exists graphEditor`) {
- //
- // Define the callbacks for the graphEditor
- //
- scriptedPanelType
- // -sourceFile "graphEditorPanel"
- -createCallback "createGraphEditor"
- -addCallback "addGraphEditor"
- -removeCallback "removeGraphEditor"
- -deleteCallback "deleteGraphEditor"
- -saveStateCallback "saveStateGraphEditor"
- graphEditor;
-
- source "graphEditorPanel";
- }
-
- if (!`scriptedPanelType -exists setEditor`) {
- //
- // Define the callbacks for the setEditor
- //
- scriptedPanelType
- // -sourceFile "setEditorPanel"
- -createCallback "createSetEditor"
- -addCallback "addSetEditor"
- -removeCallback "removeSetEditor"
- -deleteCallback "deleteSetEditor"
- -saveStateCallback "saveStateSetEditor"
- setEditor;
-
- source "setEditorPanel";
- }
-
- if (!`scriptedPanelType -exists rendRelPanel`) {
- //
- // Define the callbacks for the rendering
- // relationship panel
- //
- scriptedPanelType
- -createCallback "createRendRelPanel"
- -addCallback "addRendRelPanel"
- -removeCallback "removeRendRelPanel"
- -deleteCallback "deleteRendRelPanel"
- -saveStateCallback "saveStateRendRelPanel"
- rendRelPanel;
-
- source "rendRelPanel";
- }
-
- if (!`scriptedPanelType -exists componentEditorPanel`) {
- scriptedPanelType
- -createCallback "createComponentEditorPanel"
- -initCallback "initComponentEditorPanel"
- -addCallback "addComponentEditorPanel"
- -removeCallback "removeComponentEditorPanel"
- -saveStateCallback "saveComponentEditorPanel"
- componentEditorPanel;
-
- source "componentEditorPanel";
- }
-
- }
-
- if (`isTrue MayaCreatorExists`) {
- if (!`scriptedPanelType -exists dynPaintScriptedPanelType`) {
- if ( !`exists dynPaintCreateCallback` ) {
- // Make sure that the script is loaded
- //
- source dynPaintPanel;
- }
-
- // This is duplicated from dynPaintPanel.mel
- scriptedPanelType
- -createCallback "dynPaintCreateCallback"
- -initCallback "dynPaintInitCallback"
- -addCallback "dynPaintAddCallback"
- -removeCallback "dynPaintRemoveCallback"
- -deleteCallback "dynPaintDeleteCallback"
- -saveStateCallback "dynPaintSaveStateCallback"
- -unique true
- dynPaintScriptedPanelType;
- }
- }
-
- if (`exists hyperGraph`) {
- if (!`scriptedPanelType -exists hyperGraphPanel`) {
- //
- // Define the callbacks for the fullGraphPanel
- //
- scriptedPanelType
- -createCallback "createHyperGraphPanel"
- -initCallback "initHyperGraphPanel"
- -addCallback "addHyperGraphPanel"
- -removeCallback "removeHyperGraphPanel"
- -deleteCallback "deleteHyperGraphPanel"
- -saveStateCallback "saveStateHyperGraphPanel"
- hyperGraphPanel;
-
- source "hyperGraphPanel";
- }
-
- if (!`scriptedPanelType -exists hyperShadePanel`)
- {
- //
- // Define the callbacks for the shader editor panel.
- //
- scriptedPanelType
- -createCallback "createHyperShadePanel"
- -initCallback "initHyperShadePanel"
- -addCallback "addHyperShadePanel"
- -removeCallback "removeHyperShadePanel"
- -saveStateCallback "saveStateHyperShadePanel"
- -deleteCallback "deleteHyperShadePanel"
- -unique true
- hyperShadePanel;
-
- source "hyperShadePanel";
- }
-
- if (!`scriptedPanelType -exists visorPanel`) {
- //
- // Define the callbacks for the fullGraphPanel
- //
- scriptedPanelType
- -createCallback "createVisorPanel"
- -addCallback "addVisorPanel"
- -initCallback "initVisorPanel"
- -removeCallback "removeVisorPanel"
- -deleteCallback "deleteVisorPanel"
- -saveStateCallback "saveStateVisorPanel"
- -unique true
- visorPanel;
-
- source "visorPanel";
- }
- }
-
- if (`isTrue "PolygonsExists"`) {
- if (!`scriptedPanelType -exists polySelectionConstraintPanel`) {
- scriptedPanelType
- -unique true
- // -createCallback "createPolySelConstraintWindow"
- -addCallback "addPolySelConstraintWindow"
- -removeCallback "removePolySelConstraintWindow"
- polySelectionConstraintPanel;
-
- source "polySelConstraintPanel";
- }
- if (`isTrue "PolyTextureExists"`) {
- if (!`scriptedPanelType -exists polyTexturePlacementPanel`) {
- scriptedPanelType
- -unique true
- // -sourceFile "texturePanel"
- -createCallback "createTextureWindow"
- -addCallback "addTextureWindow"
- -removeCallback "removeTextureWindow"
- polyTexturePlacementPanel;
-
- source "texturePanel";
- }
- }
- }
-
- // Rendering Panel
- if (`isTrue "RenderingExists"`) {
- if (!`scriptedPanelType -exists multiListerPanel`) {
- scriptedPanelType
- // -sourceFile "multiListerPanel"
- -createCallback "createMultiListerPanel"
- -initCallback "initMultiListerPanel"
- -addCallback "addMultiListerPanel"
- -removeCallback "removeMultiListerPanel"
- -saveStateCallback "saveMultiListerPanel"
- multiListerPanel;
-
- source "multiListerPanel";
- }
-
- if (!`scriptedPanelType -exists renderWindowPanel`) {
- scriptedPanelType
- -unique true
- // -sourceFile "renderWindowPanel"
- -createCallback "createRenderWindowPanel"
- -addCallback "addRenderWindowPanel"
- -removeCallback "removeRenderWindowPanel"
- renderWindowPanel;
-
- source "renderWindowPanel";
- }
-
- if (!`scriptedPanelType -exists shadingGroupEditor`) {
- //
- // Define the callbacks for the shadinGroupEditor (a variant of set editor)
- //
- scriptedPanelType
- -unique true
- // -sourceFile "ShadingGroupEditorPanel"
- -createCallback "createShadingGroupEditor"
- -addCallback "addShadingGroupEditor"
- -removeCallback "removeShadingGroupEditor"
- -deleteCallback "deleteShadingGroupEditor"
- -saveStateCallback "saveStateShadingGroupEditor"
- shadingGroupEditor;
-
- source "ShadingGroupEditorPanel";
- }
- }
-
- if (`isTrue "DynamicsExists"`) {
- if (! `scriptedPanelType -exists dynRelEdPanel`) {
- scriptedPanelType
- // -sourceFile "dynRelEditorPane"
- -createCallback "createDynREPanel"
- -addCallback "addDynREPanel"
- -removeCallback "removeDynREPanel"
- dynRelEdPanel;
-
- eval( "source \"dynRelEditorPane\"" );
- }
- }
-
- // Register the relationship editor. The relationship editor is a
- // generic editor which will perform tasks like light linking,
- // dynamics relationships, attribute connection.
- // Since the relationship editor is generic, it needs to be registered
- // regardless of what modules are present. Checking whether a
- // particular task of the relationship editor can be performed given
- // the available modules must be done in the relationship editor
- // itself.
- //
- if (!`scriptedPanelType -exists relationshipPanel`)
- {
- //
- // Define the callbacks for the relationship panel.
- //
- scriptedPanelType
- -createCallback "createRelationshipPanel"
- -initCallback "initRelationshipPanel"
- -addCallback "addRelationshipPanel"
- -removeCallback "removeRelationshipPanel"
- -saveStateCallback "saveStateRelationshipPanel"
- -deleteCallback "deleteRelationshipPanel"
- relationshipPanel;
-
- eval( "source \"relationshipEditor\"" );
- }
-
- if (!`scriptedPanelType -exists referenceEditorPanel`) {
- scriptedPanelType
- -unique true
- // -sourceFile "referenceEditorPanel"
- -createCallback "createRefEdPanel"
- -addCallback "addRefEdPanel"
- -removeCallback "removeRefEdPanel"
- referenceEditorPanel;
-
- eval( "source \"referenceEditorPanel\"" );
- }
-
-
- if (!`scriptedPanelType -exists componentEditorPanel`) {
- //
- // Define the callbacks for the componentEditorPanel
- //
- scriptedPanelType
- -createCallback "createComponentEditorPanel"
- -addCallback "addComponentEditorPanel"
- -removeCallback "removeComponentEditorPanel"
- -deleteCallback "deleteComponentEditorPanel"
- -saveStateCallback "saveStateComponentEditorPanel"
- componentEditorPanel;
-
- eval( "source \"componentEditorPanel\"" );
- }
-
-
- // if (`about -nt`) {
- // if (!`scriptedPanelType -exists helpPanel`) {
- // scriptedPanelType
- // -createCallback "createHelpPanel"
- // -addCallback "addHelpPanel"
- // -removeCallback "removeHelpPanel"
- // -deleteCallback "deleteHelpPanel"
- // -saveStateCallback "saveStateHelpPanel"
- // helpPanel;
- // }
- // source "helpPanel";
- // }
- }
-